/**
 * @name: 引入pinia
 * @author: tjp
 * @time: 2022-10-17 15:00:03
 */
import {defineStore} from 'pinia'
import {Names} from '@/store/store-name'

export const companyStore = defineStore(Names.Company, {
    // 开启数据持久化
    persist: true,
    state: () => {
        return {
            // 公司编号
            companyId: ""
        }
    },
    getters: {},
    actions: {}
})

export const roleStore = defineStore(Names.Role, {
    // 开启数据持久化
    persist: true,
    state: () => {
        return {
            // 角色编号
            roleId: ""
        }
    },
    getters: {},
    actions: {}
})

